package com.test.spring.fusion.controller;

import org.spring.boot.fusion.common.response.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.test.spring.fusion.service.ProducersService;
@RestController
public class ProducersController {
	
	@Autowired
	private ProducersService producersService;
	
	@GetMapping("saveProducers")
	public ResponseData saveProducers() {
		producersService.saveProducers();
		return ResponseData.SUCCESS();
	}
	
	@GetMapping("local")
	public ResponseData local() {
		producersService.local();
		return ResponseData.SUCCESS();
	}
}
